<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
        <link href="Layout.css" rel="stylesheet" type="text/css" media="screen" />
    </h:head>
    <h:body>
        <f:view>
           <h:form>
            <div id="campoLogin">
                    <h:form>
                        <br></br>
                        <h:outputText rendered="#{userBean.naoLogado}" value="Login: "></h:outputText>
                        <h:inputText rendered="#{userBean.naoLogado}" size="10" value="#{userBean.login}"></h:inputText><br></br><br></br>
                        <h:outputText rendered="#{userBean.naoLogado}" value="Senha: "></h:outputText>
                        <h:inputSecret rendered="#{userBean.naoLogado}" size="10" value="#{userBean.senha}"></h:inputSecret><br></br><br></br>
                        <h:commandButton rendered="#{userBean.naoLogado}" value="Logar" action="#{userBean.logar}"></h:commandButton><br></br>
                        <h:outputText style="color: red" value="#{userBean.informacao}"></h:outputText><br></br>
                        <h:commandButton style="float:right" rendered="#{userBean.logado}" value="Logout" action="#{userBean.deslogar}"></h:commandButton>
                    </h:form>
                </div>
           </h:form>
        </f:view>
    </h:body>
</html>

